#ifndef LOCALSERVER_H
#define LOCALSERVER_H

#include <QtNetwork/QLocalServer>

class MainWindow;

class LocalServer : public QObject
{
  Q_OBJECT
public:
  explicit LocalServer(QObject* parent = 0);
  LocalServer(MainWindow* win);
  ~LocalServer();

signals:
  void showUp();

public slots:
  void newConnection();
  void init();
  void done();

private:
  QLocalServer* srv;
  MainWindow* win;
};

#endif // LOCALSERVER_H
